﻿@model GameSchoolApplication.Models.Announcement

@{
    ViewBag.Title = "Skrá skilaboð";
	Layout = "~/Views/Shared/_TeacherMore.cshtml";
}

<h2>Skrá skilaboð</h2>
<section id="TeacherSingleMainContent">
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend></legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Content)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.Content, new { @class = "QuestionTextArea" })
            @Html.ValidationMessageFor(model => model.Content)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.GameId)
        </div>
        <div class="editor-field">
            @Html.DropDownList("GameId", String.Empty)
            @Html.ValidationMessageFor(model => model.GameId)
        </div>

        <p>
            <input type="submit" value="Skrá" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Til baka í lista", "Index")
</div>
</section>